package com.haoze.nurseapp.service.feign;

import com.haoze.common.response.Result;
import feign.Headers;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * 通用获取数据集信息
 */
@Service
@Headers({"Content-Type:application/json"})
@FeignClient(name = "api-datasetserver")
public interface DataSetValueCommonService{

    @GetMapping(value = "/dataset/common", headers = "api-version=2.1")
    Result commonDataSetValue(@RequestParam Map<String, String> params);

    @GetMapping(value = "/patientinfo/{patNum}", headers = "api-version=2.1")
    Result getPatientInfo(@PathVariable final String patNum);

}
